home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-2.iso / Files II / Prog / T / TransSkel 3.11.sit / TransSkel v 3.11 / Documents / Tutorial / Examples / SimpleApp3.c < prev    next >
MacBinary  |  1994-02-26  |  1.9 KB  |  [TEXT/KAHL]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Sat Feb 26 01:25:00 1994, modified Sat Feb 26 01:25:00 1994, creator Think C, type ASCII, 1266 bytes "SimpleApp3.c" , at 0x572 408 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[KAHL]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0c 53 69 6d 70 6c 65 | 41 70 70 33 2e 63 00 00 |..Simple|App3.c..|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 00 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 04 f2 00 | 00 01 98 a9 94 9b bc a9 |........|........|
|00000060| 94 9b bc 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 62 7d 00 00 |........|....b}..|
|00000080| 23 20 69 6e 63 6c 75 64 | 65 20 20 20 22 54 72 61 |# includ|e "Tra|
|00000090| 6e 73 53 6b 65 6c 2e 68 | 22 0d 0d 0d 73 74 61 74 |nsSkel.h|"...stat|
|000000a0| 69 63 20 70 61 73 63 61 | 6c 20 76 6f 69 64 0d 44 |ic pasca|l void.D|
|000000b0| 6f 46 69 6c 65 4d 65 6e | 75 20 28 73 68 6f 72 74 |oFileMen|u (short|
|000000c0| 20 69 74 65 6d 29 0d 7b | 0d 20 20 20 20 53 6b 65 | item).{|. Ske|
|000000d0| 6c 53 74 6f 70 45 76 65 | 6e 74 4c 6f 6f 70 20 28 |lStopEve|ntLoop (|
|000000e0| 29 3b 20 20 20 20 20 20 | 20 20 20 20 20 20 2f 2a |); | /*|
|000000f0| 20 74 65 6c 6c 20 53 6b | 65 6c 45 76 65 6e 74 4c | tell Sk|elEventL|
|00000100| 6f 6f 70 28 29 20 74 6f | 20 71 75 69 74 20 2a 2f |oop() to| quit */|
|00000110| 0d 7d 0d 0d 0d 73 74 61 | 74 69 63 20 70 61 73 63 |.}...sta|tic pasc|
|00000120| 61 6c 20 76 6f 69 64 0d | 43 6c 6f 73 65 20 28 76 |al void.|Close (v|
|00000130| 6f 69 64 29 0d 7b 0d 09 | 53 6b 65 6c 53 74 6f 70 |oid).{..|SkelStop|
|00000140| 45 76 65 6e 74 4c 6f 6f | 70 20 28 29 3b 0d 7d 0d |EventLoo|p ();.}.|
|00000150| 0d 0d 73 74 61 74 69 63 | 20 70 61 73 63 61 6c 20 |..static| pascal |
|00000160| 76 6f 69 64 0d 43 6c 6f | 62 62 65 72 20 28 76 6f |void.Clo|bber (vo|
|00000170| 69 64 29 0d 7b 0d 57 69 | 6e 64 6f 77 50 74 72 09 |id).{.Wi|ndowPtr.|
|00000180| 77 3b 0d 0d 09 47 65 74 | 50 6f 72 74 20 28 26 77 |w;...Get|Port (&w|
|00000190| 29 3b 0d 09 44 69 73 70 | 6f 73 65 57 69 6e 64 6f |);..Disp|oseWindo|
|000001a0| 77 20 28 77 29 3b 0d 7d | 0d 0d 0d 69 6e 74 0d 6d |w (w);.}|...int.m|
|000001b0| 61 69 6e 20 28 76 6f 69 | 64 29 0d 7b 0d 4d 65 6e |ain (voi|d).{.Men|
|000001c0| 75 48 61 6e 64 6c 65 09 | 6d 3b 0d 57 69 6e 64 6f |uHandle.|m;.Windo|
|000001d0| 77 50 74 72 09 77 3b 0d | 52 65 63 74 09 09 72 3b |wPtr.w;.|Rect..r;|
|000001e0| 0d 0d 09 53 6b 65 6c 49 | 6e 69 74 20 28 6e 69 6c |...SkelI|nit (nil|
|000001f0| 29 3b 09 09 09 09 2f 2a | 20 69 6e 69 74 69 61 6c |);..../*| initial|
|00000200| 69 7a 65 20 2a 2f 0d 09 | 53 6b 65 6c 41 70 70 6c |ize */..|SkelAppl|
|00000210| 65 20 28 6e 69 6c 2c 20 | 6e 69 6c 29 3b 09 09 2f |e (nil, |nil);../|
|00000220| 2a 20 68 61 6e 64 6c 65 | 20 41 70 70 6c 65 20 6d |* handle| Apple m|
|00000230| 65 6e 75 20 2a 2f 0d 09 | 2f 2a 20 63 72 65 61 74 |enu */..|/* creat|
|00000240| 65 20 46 69 6c 65 20 6d | 65 6e 75 2c 20 69 6e 73 |e File m|enu, ins|
|00000250| 74 61 6c 6c 20 68 61 6e | 64 6c 65 72 20 2a 2f 0d |tall han|dler */.|
|00000260| 09 6d 20 3d 20 4e 65 77 | 4d 65 6e 75 20 28 73 6b |.m = New|Menu (sk|
|00000270| 65 6c 41 70 70 6c 65 4d | 65 6e 75 49 44 20 2b 20 |elAppleM|enuID + |
|00000280| 31 2c 20 22 5c 70 46 69 | 6c 65 22 29 3b 0d 09 41 |1, "\pFi|le");..A|
|00000290| 70 70 65 6e 64 4d 65 6e | 75 20 28 6d 2c 20 22 5c |ppendMen|u (m, "\|
|000002a0| 70 51 75 69 74 2f 51 22 | 29 3b 0d 09 28 76 6f 69 |pQuit/Q"|);..(voi|
|000002b0| 64 29 20 53 6b 65 6c 4d | 65 6e 75 20 28 6d 2c 09 |d) SkelM|enu (m,.|
|000002c0| 09 09 09 09 2f 2a 20 6d | 65 6e 75 20 68 61 6e 64 |..../* m|enu hand|
|000002d0| 6c 65 20 2a 2f 0d 09 09 | 09 09 09 09 44 6f 46 69 |le */...|....DoFi|
|000002e0| 6c 65 4d 65 6e 75 2c 09 | 09 2f 2a 20 69 74 65 6d |leMenu,.|./* item|
|000002f0| 20 73 65 6c 65 63 74 69 | 6f 6e 20 66 75 6e 63 74 | selecti|on funct|
|00000300| 69 6f 6e 20 2a 2f 0d 09 | 09 09 09 09 09 6e 69 6c |ion */..|.....nil|
|00000310| 2c 09 09 09 2f 2a 20 6d | 65 6e 75 20 64 69 73 70 |,.../* m|enu disp|
|00000320| 6f 73 61 6c 20 66 75 6e | 63 74 69 6f 6e 20 2a 2f |osal fun|ction */|
|00000330| 0d 09 09 09 09 09 09 66 | 61 6c 73 65 2c 09 09 09 |.......f|alse,...|
|00000340| 2f 2a 20 6e 6f 74 20 61 | 20 73 75 62 6d 65 6e 75 |/* not a| submenu|
|00000350| 20 2a 2f 0d 09 09 09 09 | 09 09 74 72 75 65 29 3b | */.....|..true);|
|00000360| 09 09 09 2f 2a 20 64 72 | 61 77 20 6d 65 6e 75 20 |.../* dr|aw menu |
|00000370| 62 61 72 20 2a 2f 0d 0d | 09 53 65 74 52 65 63 74 |bar */..|.SetRect|
|00000380| 20 28 26 72 2c 20 34 30 | 2c 20 34 30 2c 20 32 30 | (&r, 40|, 40, 20|
|00000390| 30 2c 20 31 32 30 29 3b | 0d 09 77 20 3d 20 4e 65 |0, 120);|..w = Ne|
|000003a0| 77 57 69 6e 64 6f 77 20 | 28 6e 69 6c 2c 20 26 72 |wWindow |(nil, &r|
|000003b0| 2c 20 22 5c 70 41 20 57 | 69 6e 64 6f 77 22 2c 20 |, "\pA W|indow", |
|000003c0| 74 72 75 65 2c 0d 09 09 | 09 09 09 09 64 6f 63 75 |true,...|....docu|
|000003d0| 6d 65 6e 74 50 72 6f 63 | 2b 38 2c 20 28 57 69 6e |mentProc|+8, (Win|
|000003e0| 64 6f 77 50 74 72 29 20 | 2d 31 2c 20 74 72 75 65 |dowPtr) |-1, true|
|000003f0| 2c 20 30 4c 29 3b 0d 09 | 28 76 6f 69 64 29 20 53 |, 0L);..|(void) S|
|00000400| 6b 65 6c 57 69 6e 64 6f | 77 20 28 77 2c 0d 09 09 |kelWindo|w (w,...|
|00000410| 09 09 09 09 6e 69 6c 2c | 09 09 2f 2a 20 6d 6f 75 |....nil,|../* mou|
|00000420| 73 65 20 63 6c 69 63 6b | 20 68 61 6e 64 6c 65 72 |se click| handler|
|00000430| 20 2a 2f 0d 09 09 09 09 | 09 09 6e 69 6c 2c 09 09 | */.....|..nil,..|
|00000440| 2f 2a 20 6b 65 79 20 63 | 6c 69 63 6b 20 68 61 6e |/* key c|lick han|
|00000450| 64 6c 65 72 20 2a 2f 0d | 09 09 09 09 09 09 6e 69 |dler */.|......ni|
|00000460| 6c 2c 09 09 2f 2a 20 75 | 70 64 61 74 65 20 65 76 |l,../* u|pdate ev|
|00000470| 65 6e 74 20 68 61 6e 64 | 6c 65 72 20 2a 2f 0d 09 |ent hand|ler */..|
|00000480| 09 09 09 09 09 6e 69 6c | 2c 09 09 2f 2a 20 61 63 |.....nil|,../* ac|
|00000490| 74 69 76 61 74 65 20 65 | 76 65 6e 74 20 68 61 6e |tivate e|vent han|
|000004a0| 64 6c 65 72 20 2a 2f 0d | 09 09 09 09 09 09 43 6c |dler */.|......Cl|
|000004b0| 6f 73 65 2c 09 09 2f 2a | 20 63 6c 6f 73 65 20 62 |ose,../*| close b|
|000004c0| 6f 78 20 63 6c 69 63 6b | 20 68 61 6e 64 6c 65 72 |ox click| handler|
|000004d0| 20 2a 2f 0d 09 09 09 09 | 09 09 43 6c 6f 62 62 65 | */.....|..Clobbe|
|000004e0| 72 2c 09 2f 2a 20 64 69 | 73 70 6f 73 61 6c 20 66 |r,./* di|sposal f|
|000004f0| 75 6e 63 74 69 6f 6e 20 | 2a 2f 0d 09 09 09 09 09 |unction |*/......|
|00000500| 09 6e 69 6c 2c 09 09 2f | 2a 20 69 64 6c 65 2d 74 |.nil,../|* idle-t|
|00000510| 69 6d 65 20 68 61 6e 64 | 6c 65 72 20 2a 2f 0d 09 |ime hand|ler */..|
|00000520| 09 09 09 09 09 74 72 75 | 65 29 3b 09 09 2f 2a 20 |.....tru|e);../* |
|00000530| 69 64 6c 65 20 6f 6e 6c | 79 20 77 68 65 6e 20 66 |idle onl|y when f|
|00000540| 72 6f 6e 74 6d 6f 73 74 | 20 2a 2f 0d 09 53 6b 65 |rontmost| */..Ske|
|00000550| 6c 45 76 65 6e 74 4c 6f | 6f 70 20 28 29 3b 0d 09 |lEventLo|op ();..|
|00000560| 53 6b 65 6c 43 6c 65 61 | 6e 75 70 20 28 29 3b 0d |SkelClea|nup ();.|
|00000570| 7d 0d 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |}.......|........|
|00000580| 00 00 01 00 00 00 01 52 | 00 00 00 52 00 00 00 46 |.......R|...R...F|
|00000590| 91 88 79 d4 f9 4d 18 02 | 88 d0 9b 80 f6 16 37 a1 |..y..M..|......7.|
|000005a0| 5f 29 e4 80 88 2c 50 2a | 83 cc 4d 96 da 59 20 23 |_)...,P*|..M..Y #|
|000005b0| 0c 53 69 6d 70 6c 65 41 | 70 70 33 2e 63 b6 02 00 |.SimpleA|pp3.c...|
|000005c0| 00 00 50 61 72 74 53 49 | 54 78 00 00 00 00 00 00 |..PartSI|Tx......|
|000005d0| 00 00 50 61 72 74 53 49 | 54 78 00 00 00 00 00 00 |..PartSI|Tx......|
|000005e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005f0| 00 00 a9 9f 75 a5 00 00 | 00 00 00 00 01 98 53 f8 |....u...|......S.|
|00000600| 59 26 10 3f 02 82 a1 26 | 94 60 0a 85 1a 20 60 a3 |Y&.?...&|.`... `.|
|00000610| 4a 0a 89 18 9a a6 63 ac | 00 c3 b1 18 00 35 1d 0a |J.....c.|.....5..|
|00000620| 07 a5 21 68 60 13 2f 08 | 19 c0 60 b4 4c 48 10 5b |..!h`./.|..`.LH.[|
|00000630| a1 36 f2 00 02 06 60 81 | 80 e0 65 80 60 2a 90 16 |.6....`.|..e.`*..|
|00000640| b7 4c e1 44 40 50 db 58 | c2 81 7c 02 5a 3d 05 9c |.L.D@P.X|..|.Z=..|
|00000650| 25 63 03 e5 29 11 82 e1 | 34 00 ec 5f 02 9d 46 0a |%c..)...|4.._..F.|
|00000660| bc 85 93 30 01 0e c4 20 | 00 39 9c ce f9 4d 9a e8 |...0... |.9...M..|
|00000670| 01 12 f2 46 05 09 7c 0a | b0 81 89 da 3e 44 18 01 |...F..|.|....>D..|
|00000680| 00 00 00 08 00 38 00 14 | 01 25 02 40 00 00 00 42 |.....8..|.%.@...B|
|00000690| 00 04 00 00 00 e5 00 00 | 00 ec 07 43 6c 6f 62 62 |........|...Clobb|
|000006a0| 65 72 00 00 00 a8 00 00 | 00 ad 05 43 6c 6f 73 65 |er......|...Close|
|000006b0| 00 00 00 2f 00 00 00 39 | 0b 44 6f 46 69 6c 65 4d |.../...9|.DoFileM|
|000006c0| 65 6e 75 00 00 00 01 2f | 00 00 01 33 05 6d 61 69 |enu..../|...3.mai|
|000006d0| 6e 00 00 00 01 00 00 00 | 01 52 00 00 00 52 00 00 |n.......|.R...R..|
|000006e0| 00 46 00 4c bf b8 0a 4a | 00 00 00 1c 00 46 00 01 |.F.L...J|.....F..|
|000006f0| 52 45 43 54 00 00 00 12 | 4d 50 53 52 00 00 00 1e |RECT....|MPSR....|
|00000700| 00 00 ff ff 00 00 00 00 | 00 00 00 00 03 ef ff ff |........|........|
|00000710| 00 00 00 0c 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+